-- GENERATED SPELL FOR [Dessecus] --


function spell0_7104(pUnit, Event) --@Chain Lightning,n/a--
pUnit:FullCastSpellOnTarget(12058,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7104', 3000, 1)
end

function spell1_7104(pUnit, Event) --@Lightning Cloud,n/a--
pUnit:FullCastSpellOnTarget(8293,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7104', 17500, 1)
end

function Sorts_7104(pUnit, Event)
local choix_sorts_7104 = math.random(0, 1)
if choix_sorts_7104 == 0 then
pUnit:RegisterEvent('spell0_7104', 1, 1)
end
if choix_sorts_7104 == 1 then
pUnit:RegisterEvent('spell1_7104', 1, 1)
end
end

function mob7104_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7104', math.random(1500, 3000), 1)
end

function mob7104_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7104_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7104_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7104, 1, 'mob7104_Action')
RegisterUnitEvent(7104, 2, 'mob7104_Leave')
RegisterUnitEvent(7104, 3, 'mob7104_Kill')
RegisterUnitEvent(7104, 4, 'mob7104_Die')
